# coding=utf-8

import threading
import time


def f1(a1):
    time.sleep(5)
    print(a1)


def f2(a2):
    time.sleep(11)
    print(a2)


t = threading.Thread(target=f1, args=(111,))
t2 = threading.Thread(target=f2, args=(222,))

thread_list = []

t.start()
t2.start()

thread_list.append(t)
thread_list.append(t2)

for item in thread_list:
    item.join(5)
print('end')
